Remove GDestroyNotify casts in g_clear_pointer() uses
authorErnestas Kulik <ernestask@gnome.org>
Wed, 25 Jul 2018 07:00:09 +0000 (10:00 +0300)
committerErnestas Kulik <ernestask@gnome.org>
Wed, 25 Jul 2018 07:05:39 +0000 (10:05 +0300)
commit6adaf7c33d9a0d59b8b17bcd860957ef94a5c134
tree0398d18e3c329f76f1a6d14ee3e688939d414b6d
parent95a4eff6baddb174ef5ff8384250bd8c1e6e1f32
Remove GDestroyNotify casts in g_clear_pointer() uses

GLib master propagates argument types in g_clear_pointer(), which causes
the usual function pointer casts to GDestroyNotify to trip compiler
warnings. Additionally, this commit changes some cleanup functions where
appropriate (wl_data_source_destroy ->
gtk_primary_selection_source_destroy for struct
gtk_primary_selection_source).
gdk/wayland/gdkclipboard-wayland.c
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkdrag-wayland.c
gdk/wayland/gdkdrop-wayland.c
gdk/wayland/gdkprimary-wayland.c
gtk/gtkdnd.c
gtk/gtkscrolledwindow.c